package com.hl.shifangzhiyu.web;

import com.hl.shifangzhiyu.pojo.ConsultLevels;
import com.hl.shifangzhiyu.service.ConsultLevelsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/consultantLevels")
public class ConsultLevelsController {
    @Autowired
    private ConsultLevelsService consultLevelsService;
    @RequestMapping("/listAll")
    public  List<ConsultLevels> listAll(){
        return consultLevelsService.listAll();
    }
}
